<script setup>
import { useUserStore } from '@/stores/counter'
import { storeToRefs } from 'pinia'

const user_store = useUserStore()

const { age, level, account: userAccount, nickname: userNickname } = storeToRefs(user_store)
</script>

<template>
  <ul>
    <li>年龄：{{ age }}</li>
    <li>等级：{{ level }}</li>
    <li>账号：{{ userAccount }}</li>
    <li>昵称：{{ userNickname }}</li>
  </ul>
</template>

<style scoped>
ul {
  background-color: yellow;
}
</style>
